package cn.zhangchg.leetcode.thread;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class Oom {
    public static void main(String[] args) {
        Random random = new Random();
        List<String> a = new ArrayList<>();
        //StringBuilder sb = new StringBuilder("a");
        long i  = 0;
        while(true){
            a.add(Double.toString(random.nextDouble()));
            //sb.append(Double.toString(random.nextDouble()));
            if (i++ % 1000 == 0){
                //System.out.println(sb.toString());
            }
        }
    }
}
